/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BUS;

import DAO.CTDonHangDAO;
import DAO.DonHangDAO;
import Entity.CTDonHang;
import Entity.DonHang;

/**
 *
 * @author Dark_Knight
 */
public class DonHangImpl implements DonHangBUS {
    
    private DonHangDAO dao;
    private CTDonHangDAO daoDetail;
    
    public DonHangImpl() {
        dao = new DAO.DonHangImpl();
        daoDetail = new DAO.CTDonHangImpl();
    }

    public boolean add(DonHang data) {
        return dao.add(data);
    }

    public boolean addDetail(CTDonHang data) {
        return daoDetail.add(data);
    }
    
}
